package com.v2future.sjt.collegecheckingattendance.leave.bean;

import android.widget.Checkable;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/2/17.
 * 课程数据
 */
public class CourseUnitBean implements Serializable,Checkable{

    /**
     * courseCode : 10
     * courseName : 宪法学
     * courseNumber : 2
     * pkUserCourseId : 63
     * termName : 2016-02~2016-06
     * weekDay : 3
     */

    private String courseCode;
    private String courseName;
    private String courseNumber;
    private String pkUserCourseId;
    private String termName;
    private String weekDay;
    private boolean checked = false;//add

    public void setCourseCode(String courseCode) {
        this.courseCode = courseCode;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public void setCourseNumber(String courseNumber) {
        this.courseNumber = courseNumber;
    }

    public void setPkUserCourseId(String pkUserCourseId) {
        this.pkUserCourseId = pkUserCourseId;
    }

    public void setTermName(String termName) {
        this.termName = termName;
    }

    public void setWeekDay(String weekDay) {
        this.weekDay = weekDay;
    }

    public String getCourseCode() {
        return courseCode;
    }

    public String getCourseName() {
        return courseName;
    }

    public String getCourseNumber() {
        return courseNumber;
    }

    public String getPkUserCourseId() {
        return pkUserCourseId;
    }

    public String getTermName() {
        return termName;
    }

    public String getWeekDay() {
        return weekDay;
    }

    @Override
    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    @Override
    public boolean isChecked() {
        return checked;
    }

    @Override
    public void toggle() {
        checked = !checked;
    }
}
